package com.ls.pattern.establish.builder;

public abstract class HouseBuilder {
    protected House house = new House();

    public abstract void buildBisic();

    public abstract void buildWalls();

    public abstract void roofed();

    public House build() {
        //这样去掉了Director 但加重了builder 的职责
        buildBisic();
        buildWalls();
        roofed();
        return house;
    }
}
